﻿import request from '/@/utils/request';
enum Api {
  AddYnPcl = '/api/ynPcl/add',
  DeleteYnPcl = '/api/ynPcl/delete',
  UpdateYnPcl = '/api/ynPcl/update',
  PageYnPcl = '/api/ynPcl/page',
  DetailYnPcl = '/api/ynPcl/detail',
}

// 增加路面破损
export const addYnPcl = (params?: any) =>
	request({
		url: Api.AddYnPcl,
		method: 'post',
		data: params,
	});

// 删除路面破损
export const deleteYnPcl = (params?: any) => 
	request({
			url: Api.DeleteYnPcl,
			method: 'post',
			data: params,
		});

// 编辑路面破损
export const updateYnPcl = (params?: any) => 
	request({
			url: Api.UpdateYnPcl,
			method: 'post',
			data: params,
		});

// 分页查询路面破损
export const pageYnPcl = (params?: any) => 
	request({
			url: Api.PageYnPcl,
			method: 'post',
			data: params,
		});

// 详情路面破损
export const detailYnPcl = (id: any) => 
	request({
			url: Api.DetailYnPcl,
			method: 'get',
			data: { id },
		});


